<div class="yuList">
    <div class="clearfix" ></div>
    <div class="yuSuo clearfix" style="float:left;">
        <form id="searchFrom">
            <input id="status" name="status" type="hidden" value="{$params.status}"/>
            <input type="text" id="start_time" name="start_time" value="{$params.start_time}" placeholder="上传时间" readonly /><em></em>
            <input type="text" id="end_time" name="end_time" value="{$params.end_time}" placeholder="上传时间" readonly />
            <input type="text" name="car_no" value="{$params.car_no}"  placeholder="车辆编号"  class="suoDian suoDian1" style="width: 150px;">
            <select id="location_area" name="location_area" class="branch_company">
                <if condition="count($bc_city) gt 1">
                    <option value="">请选择所在地</option>
                </if>
                <volist name="bc_city" id="city">
                    <option value="{$key}"
                    <?php if ($key == $params[location_area]): ?>
                        selected="selected"
                    <?php else: ?>
                    <?php endif ?> >{$city}</option>
                </volist>
            </select>
            <select name="checker_id" id="checker" style="width:162px;float:left;">
                    <option value=''>请选择评估师</option>
                     <volist name='checker' id='ce'>
                         <option value="{$ce.emp_id}" 
                         <?php if ($ce[emp_id] == $params[checker_id]): ?>
                             selected="selected"
                         <?php endif ?> >{$ce.real_name}</option>
                    </volist>
            </select>
            <if condition="$params['status'] neq 1">
                <input type="text" name="audit_emp_name" value="{$params.audit_emp_name}" placeholder="请输入审核人" class="suoDian suoDian1" style="margin-left:10px;width: 150px;"/>
            </if>
            <input type="button" onclick="search();" value="搜索" class="suoSou" style="width:80px;">
        </form>
    </div>
    <table class="table table-bordered">
        <thead>
        <tr>
            <th>车辆编号</th>
            <th>车型</th>
            <th>所在地</th>
            <th>级别</th>
            <if condition="($params['status'] eq 1)">
            <th>上传时间</th>
            <else />
            <th>审核时间</th>
            </if>
            <th>评估师</th>
            <if condition="($params['status'] eq 1) ">
            <th>状态</th>
            <th>操作</th>
            <elseif condition="$params['status'] eq 2"/>
            <th>审核人</th>
            <th>状态</th>
            <th>驳回描述</th>
            <elseif condition="$params['status'] eq 3"/>
            <th>审核人</th>
            <th>状态</th>
            <elseif condition="$params['status'] eq 4"/>
            <th>审核人</th>
            <th>状态</th>
            <th>失败描述</th>
            </if>
            
        </tr>
    </thead>
    <tbody>
        <volist name="list" id="vo" key="k">
            <tr>
                <td>{$vo.car_no}</td>
                <td>
                    <if condition="$params['status'] eq 3">
                        <a href="/Car/report/car_id/{$vo.car_id}"  target="_blank">{$vo.model}</a>
                    <else />
                    {$vo.model}
                    </if>       
                </td>
                <td>{$vo.location_area}</td>
                <td>{$vo.composite_state}{$vo.accident_level}</td>
                <if condition="($params['status'] eq 1)">
                <td>{$vo.posttime}</td>
                <else />
                <td>{$vo.audit_time}</td>
                </if>
                <td>{$vo.checker_name}</td>
                <if condition="($params['status'] eq 1)">
                <td>待审核</td>
                <td><a href="javascript:openwin('/DetectionCheck/check?car_id={$vo.car_id}');">审核</a></td>
                <elseif condition="$params['status'] eq 2"/>
                <td>{$vo.audit_emp}</td>
                <td>审核驳回</td>
                <td>{$vo.remark}</td>
                <elseif condition="$params['status'] eq 3"/>
                <td>{$vo.audit_emp}</td>
                <td>审核成功</td>
                <elseif condition="$params['status'] eq 4"/>
                <td>{$vo.audit_emp}</td>
                <td>审核失败</td>
                <td>{$vo.remark}</td>
                </if>
            </tr>
        </volist>
        </tbody>
    </table>
    <div class="clearfix" ></div>
    <div class="pageFaye"><div class="pager">{$page}</div><div class="clear"></div></div>
</div>
<script type="text/javascript">$(function(){$("input").placeholder();});</script>
<script>
$("#checker").select2();
$("#start_time").ymdateplugin({
    changeMonth: true,
    changeYear: true
});

$("#end_time").ymdateplugin({
    changeMonth: true,
    changeYear: true
});
$(function(){
    var status = $("#status").val();
    if(status == 1){
        $("#start_time,#end_time").attr('placeholder','上传时间');
    }else{
        $("#start_time,#end_time").attr('placeholder','审核时间');
    }
});

</script>
